package com.xuecheng.system.service;

import com.aliyuncs.exceptions.ClientException;
import com.xuecheng.commons.model.dto.CompanyAuditDto;
import com.xuecheng.commons.model.dto.CompanyDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.system.domain.Company;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;

/**
 * <p>
 * 教育机构 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-29
 */
public interface CompanyService extends IService<Company> {

    //机构资料提交
    ResponseResult postCompany(CompanyDto dto);


    //机构-个人组织列表查询
    ResponseResult findByPage(PageRequest request, CompanyDto dto) throws IOException;

    //机构审核
    ResponseResult approve(CompanyAuditDto dto);

    //根据id查询机构
    ResponseResult findById(String companyId) throws IOException;
}
